<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

</head>
<body>
<div id="app">
    <button @click="f1(666,'1212')">button</button>
    <input type="text" @keyup.enter="f2">
</div>

<script>
    const app = new Vue({
        el:"#app",
        data:{},
        methods:{
            f1:function (p1, p2) {
                console.log("do it",p1, p2)
            },
            f2:function () {
                console.log("f2")
            }
        }
    })
</script>
</body>
</html>
